package com.qianfeng.project.global;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

/**
 * 所有Activity的父类
 * 
 * @author Sunny
 *
 */
public class BaseActivity extends FragmentActivity {
	public static Context mContext;

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		mContext = this;
	}

	// 若数据异常提示,就结束当前activity，不会使整个app崩掉
	public void dataError() {
		finish();
	}
}
